package com.djdg.foodies.admin.base.exception;

import org.springframework.http.HttpStatus;

/**
 * @Description:
 * @Auther Demon
 * @Date 2017/12/15 18:19 星期五
 */
public class UnAuthorizedException extends RuntimeException {
    private int code = HttpStatus.UNAUTHORIZED.value();

    public UnAuthorizedException(){}

    public UnAuthorizedException(String msg){
        super(msg);
    }

    public UnAuthorizedException(int code,String msg){
        super(msg);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

}
